import request from '@/utils/request'

// 查询资产变更记录列表
export function listAssetChange(query) {
  return request({
    url: '/manage/assetChange/list',
    method: 'get',
    params: query
  })
}

// 查询资产变更记录详细
export function getAssetChange(id) {
  return request({
    url: '/manage/assetChange/' + id,
    method: 'get'
  })
}

// 新增资产变更记录
export function addAssetChange(data) {
  return request({
    url: '/manage/assetChange',
    method: 'post',
    data: data
  })
}

// 修改资产变更记录
export function updateAssetChange(data) {
  return request({
    url: '/manage/assetChange',
    method: 'put',
    data: data
  })
}

// 删除资产变更记录
export function delAssetChange(id) {
  return request({
    url: '/manage/assetChange/' + id,
    method: 'delete'
  })
}

export function addAssetChanges(id) {
  return request({
    url: '/manage/assetChange/' + id,
    method: 'put'
  })
}
